import Vue from 'vue'
import VueRouter from 'vue-router'
import Index from '../view/Index'
// 安装路由
Vue.use(VueRouter);

// 配置导出路由
export default new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes: [{
      path: "/", 
      redirect: "/index"
    },
    {
      name: "Index",
      path: '/index',
      component: Index
    }
  ]

});
